<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Models\Pictuer;
class PagesController extends Controller
{

    public function index()
    {
        $pictuers = Pictuer::with('user')->where('width', '>', 400)->latest()->limit(20)->get();
        return view('pages.index', compact('pictuers'));
    }
}
